<div class="b4"></div>
<?php foreach ($list as $k=>$v):?>
<div class="reply-cont-item">
<table width="100%">
	<tr>
		<td width="25"><img title="<?php echo $v->postername;?>" 
				class="topic-view-top-avatar" src="http://www.gravatar.com/avatar/<?php echo md5($v->posteremail);?>?s=20&d=&r=X"/></td>
		<td class="fs2"><?php echo $v->cont;?></td>
		<td class="fs2" width="140">
            <?php echo date('y年m月d日 H时i分',$v->atime)?>		
		</td>
		<?php if($is_login):?>
		<td width="60">
    		<a class="btn-reply-reply fs2" href="javascript:void(0);" poster="<?php echo $v->postername;?>">回复</a>
    		<?php if($is_login && $loginer->id == $v->poster_id):?>
    		<a class="btn-ajax-confirm fs2" msg="Sure 不   ？" afterdo="reply_del_after"
    			href="<?php echo site_url('c=reply&m=del&id='.$v->id);?>">删除</a>
    		<?php endif;?>
		</td>
		<?php endif;?>
	</tr>
</table>
<div class="b4"></div>
</div>
<div class="b4"></div>
<?php endforeach;?>
<div class="b1"></div>

<script>
$(function(){
	$('.btn-reply-reply').click(function(){
		var postername = $(this).attr('poster');
		$('#cont').val('#'+postername.trim()+'# ').focus();
	});
	ajaxinit();
});
</script>